package com.zmj.sy.mom.srv.aps.bean.entity.mes;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zmj.sy.mom.srv.aps.bean.entity.base.BaseEntity;
import com.zmj.sy.mom.srv.mbd.api.utils.Comment;
import lombok.Getter;
import lombok.Setter;

@Comment("零件操作日志表")
@Getter
@Setter
@TableName("tb_mes_part_log")
public class PartLog extends BaseEntity {

    @Comment("操作类型:0完成 1创建 2移动 3消费 4转换 5装盘 6卸盘 7异常 8 多套  ")
    private Integer operationType;

    @Comment("零件类型:1钢板 2零件 3外购件 4成品")
    private Integer partType;

    @Comment("零件标识")
    private String partId;

    @Comment("当前已加工的工序")
    private String phaseCode;

    @Comment("下道待加工的工序")
    private String nextPhaseCode;

    @Comment("施工号")
    private String constructNo;

    @Comment("唯一号")
    private String uniCode;

    @Comment("报工id")
    private Integer reportId;

    @Comment("修改前数量")
    private Integer totalCount;

    @Comment("成功数量")
    private Integer successCount;

    @Comment("失败数量")
    private Integer errorCount;

    @Comment("修改后数量")
    private Integer afterCount;

    @Comment("上一道")
    private String prePartHistory;

    @Comment("载具类型 0无载具 1托盘 2料位")
    private Integer loadType;

    @Comment("载具号")
    private String loadId;

    @Comment("父领料plmid")
    private String parentPlmid;

    @Comment("工位编号")
    private String stationCode;

    @Comment("工作组编号")
    private String groupCode;

    @Comment("用户工号")
    private String userCode;

}
